﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Action</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body><FONT size=2><FONT face=Courier><B><FONT color=#7f0055 size=2>
<P>public</B></FONT><FONT size=2> ... 
copy()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<STRONG><FONT face=Courier>gần như tất cả các action đều có một method copy() 
:&nbsp;tạo ra&nbsp;một&nbsp;action mới giống hệt nó</FONT></STRONG></P></FONT><FONT size=2><B><FONT 
color=#7f0055 size=2>
<P>public</B></FONT><FONT size=2> </FONT><B><FONT color=#7f0055 
size=2>void</B></FONT><FONT size=2> start(CocosNode aTarget)</FONT></P><FONT 
size=2><B><FONT color=#7f0055 size=2>
<P>public</B></FONT><FONT size=2> </FONT><B><FONT color=#7f0055 
size=2>void</B></FONT><FONT size=2> 
stop()</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT size=2></FONT>&nbsp;</P><FONT size=2><FONT color=#0000c0 size=2>
<P>duration càng lớn thì thời gian update càng nhỏ </P>
<P>thời gian update lâu nhất cũng là 1s đối với </P><FONT size=2>
<P align=left></FONT><FONT color=#646464 size=2>@Override</P></FONT><FONT 
size=2>
<P></FONT><B><FONT color=#7f0055 size=2>public</B></FONT><FONT size=2> 
</FONT><B><FONT color=#7f0055 size=2>void</B></FONT><FONT size=2> 
step(</FONT><B><FONT color=#7f0055 size=2>float</B></FONT><FONT size=2> 
dt){</FONT></P>
<P><FONT size=2>&nbsp;&nbsp;&nbsp; <FONT size=2>update(Math.<I>min</I>(1, 
</FONT><FONT color=#0000c0 size=2>elapsed</FONT><FONT size=2> / </FONT><FONT 
color=#0000c0 size=2>duration</FONT><FONT size=2>));</P></FONT></FONT>
<P><FONT 
size=2>}</P></FONT></FONT></FONT></FONT></FONT></FONT></FONT></body>
</html>
